How can I get python to print line numbers if i have python already loading text from a .txt file. ... They are not in one row when you print them because of the newline characters. You can strip the newline characters (and other whitespace characters as